package com.googlecode.classgrep.info;


public class PackageInfo extends Annotatable implements Info {
    private final String name;
    private final Package pkg;

    public PackageInfo(Package pkg){
        super(pkg);
        this.pkg = pkg;
        this.name = pkg.getName();
    }

    public PackageInfo(String name) {
        this.name = name;
        this.pkg = null;
    }

    public String getName() {
        return name;
    }
}